<div class="ciuusers contenidofijo">
	<div class="breadcrumb">
			<li>
			<?php echo $this->Html->link("Exámenes", array('controller' => 'ciuexams', 'action' => 'index')); ?>
			</li>
			<li class="divider">|</li>
			<li>
			<?php echo "Resumen Admitidos" ?>
			</li>
	</div>
<table class="zebra">
<thead>
<tr>
	<th>Horario</th>
	<th>Plan</th>
	<th>Asignatura</th>
	<th>Cantidad <br> Admitidos</th>
	<th>Acciones</th>
</tr>
</thead>
<?php
	foreach($demand as $key => $val){
	?>
	<tr>
		<td><?php echo $val['Ciutimetable']['name']; ?>&nbsp;</td>
		<td><?php echo $val['Ciuuser']['ciuplan_id']."-".$val['Ciuplan']['name']   ; ?>&nbsp;</td>
		<td><?php echo $val['Ciusubject']['name']; ?>&nbsp;</td>
		<td><?php echo $val[0]['qty']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Crear Curso', true), array('controller' => 'ciucourses', 'action' => 'create'
			, $val['Ciutimetable']['id'] 
			, $val['Ciuuser']['ciuplan_id']
            , $val['Ciusubject']['id']
			)); ?>
		</td>
	</tr>
<?php		
	}
?>
</table>
</div>